/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class SmartCervicalMassageDevice {
    static categoryCode = '010070013';

    static categoryName = '智能颈椎按摩仪';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return SmartCervicalMassageDevice.categoryCode;
    }

    get categoryName() {
        return SmartCervicalMassageDevice.categoryName;
    }

    getIntensity(params) {
        return command({
            method: 'getIntensity',
            methodId: 'p1vZRvbk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'pDrhTNL1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainTime(params) {
        return command({
            method: 'getRemainTime',
            methodId: 'phEqjJKR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pGoxILWq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTime(params) {
        return command({
            method: 'getTime',
            methodId: 'pgh0HTUo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setIntensity(params) {
        return command({
            method: 'setIntensity',
            methodId: 'ppAXPriG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'pUPQldtx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3fA23',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTime(params) {
        return command({
            method: 'setTime',
            methodId: 'pZgunZBb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default SmartCervicalMassageDevice;
